<ul data-role="listview" data-divider-theme="a" data-inset="true">
    <li data-role="list-divider"><?php echo $heading_title; ?></li>
    <?php foreach ($products as $product) { ?>
        <li><a href="<?php echo $product['href']; ?>">
            <?php if ($product['thumb']) { ?>
                <img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" />
            <?php } ?>
            <h3><?php echo $product['name']; ?></h3>
            <div>
                <?php if ($product['price']) { ?>
                    <div class="price">
                        <?php if (!$product['special']) { ?>
                            <?php echo $product['price']; ?>
                        <?php } else { ?>
                            <span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>
                        <?php } ?>
                    </div>
                <?php } ?>
                <?php if ($product['rating']) { ?>
                    <div class="rating"><img src="catalog/view/theme/tablet/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
                    <?php } ?>
            </div></a>
            <a onclick="addToCart('<?php echo $product['product_id']; ?>');" data-rel="dialog" data-transition="slideup"><?php echo $button_cart; ?></a>
        </li>
    <?php } ?>
</ul><br />